package com.swallow.auth.common.enums;

import lombok.Getter;

/**
 * @author: 18310740596@163.com
 * @date: 2024-05-10 23:39:25
 * @version: v1.0
 * @describe: class responsibility
 */
@Getter
public enum ErrorCode implements IBaseEnum {
    SUCCESS("000000", "处理成功"),
    SYSTEM_ERROR("999999", "系统内部错误"),
    PARAM_ILLEGAL("100000", "参数:{0} 不合法"),
    DATA_HAS_EXITS("100001", "{0} 已存在"),

    REGISTER_DUP_CHECK_ERROR("101001", "{0} 已被注册!"),

    SIGN_CHECK_ERROR("101002", "{0} 验签异常!"),
    CAPTCHA_CHECK_ERROR("101003", "{0} 验证码错误!"),

    PWD_STRENGTH_ERROR("101004", "密码强度不合法,密码应包含数字、字母和特殊字符其中两种.")
    ;
    private final String value;

    private final String name;

    ErrorCode(String value, String name) {
        this.value = value;
        this.name = name;
    }
}
